package com.example.library.mapper;

import com.example.library.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface BookMapper {

    List<Book> findAll(int offset, int limit);


    Book findById(Long id);


    List<Book> search(String keyword);


    int insert(Book book);


    int update(Book book);


    int delete(Long id);


    int count();
}